<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page autoFlush="true" buffer="1094kb" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Gentellela Alela! | </title>
    <!-- Bootstrap -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/bootstrap/dist/css/bootstrap.min.css"
          rel="stylesheet">
    <!-- Font Awesome -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/font-awesome/css/font-awesome.min.css"
          rel="stylesheet">
    <!-- NProgress -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- bootstrap-progressbar -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css"
          rel="stylesheet">
    <!-- JQVMap -->
    <link href="${pageContext.request.contextPath }/statics/css/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <!-- Custom Theme Style -->
    <link href="${pageContext.request.contextPath }/statics/css/build/css/custom.min.css" rel="stylesheet">
</head>
<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
                <div class="navbar nav_title" style="border: 0;">
                    <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentellela Alela!</span></a>
                </div>
                <div class="clearfix"></div>
                <!-- menu profile quick info -->
                <div class="profile">
                    <div class="profile_pic">
                        <img src="${pageContext.request.contextPath }/statics/images/img.jpg" alt="..."
                             class="img-circle profile_img">
                    </div>
                    <div class="profile_info">
                        <span>Welcome,</span>
                        <h2>${user.userCode}</h2>
                    </div>
                </div>
                <!-- /menu profile quick info -->
                <br/>
                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                    <div class="menu_section">
                        <h3>General</h3>
                        <li><a href="index3.html">Dashboard3</a></li>
                        </ul>
                        </li>
                        <li><a><i class="fa fa-edit"></i> 用户管理 <span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                <li><a href="form.html">General Form</a></li>
                                <li><a href="form_advanced.html">Advanced Components</a></li>
                                <li><a href="form_validation.html">Form Validation</a></li>
                                <li><a href="form_wizards.html">Form Wizard</a></li>
                                <li><a href="form_upload.html">Form Upload</a></li>
                                <li><a href="form_buttons.html">Form Buttons</a></li>
                            </ul>
                        </li>
                        <li><a><i class="fa fa-bug"></i> 基础数据维护<span class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                <li><a href="e_commerce.html">E-commerce</a></li>
                                <li><a href="projects.html">Proj
                        <ul class="nav side-menu">
                            <li><a><i class="fa fa-home"></i> 手游管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="index.">手游审核</a></li>
                                    <li><a href="in
                            dex2.html">广告推广</a> </li>
                                <li><a href="project_detail.html">Project Detail</a></li>
                                <li><a href="contacts.html">Contacts</a></li>
                                <li><a href="profile.html">Profile</a></li>
                            </ul>
                        </li>
                        </ul></a>
                                </li></ul></li></div>



                </div>
                <!-- /sidebar menu -->
                <!-- /menu footer buttons -->
                <div class="sidebar-footer hidden-small">
                    <a data-toggle="tooltip" data-placement="top" title="Settings">
                        <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                        <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="Lock">
                        <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
                    </a>
                    <a data-toggle="tooltip" data-placement="top" title="Logout">
                        <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                    </a>
                </div>
                <!-- /menu footer buttons -->
            </div>
        </div>
        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                               aria-expanded="false">
                                <img src="${pageContext.request.contextPath }/statics/images/img.jpg"
                                     alt="">${user.userCode}
                                <span class=" fa fa-angle-down"></span>
                            </a>
                            <ul class="dropdown-menu dropdown-usermenu pull-right">
                                <li><a href="javascript:;"> Profile</a></li>
                                <li>
                                    <a href="javascript:;">
                                        <span class="badge bg-red pull-right">50%</span>
                                        <span>Settings</span>
                                    </a>
                                </li>
                                <li><a href="javascript:;">Help</a></li>
                                <li><a href="${pageContext.request.contextPath }/user/tozhuxiao"><i
                                        class="fa fa-sign-out pull-right"></i> Log Out</a></li>
                            </ul>
                        </li>

                        <li role="presentation" class="dropdown">
                            <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown"
                               aria-expanded="false">
                                <i class="fa fa-envelope-o"></i>
                                <span class="badge bg-green">6</span>
                            </a>
                            <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
                                <li>
                                    <a>
                                        <span class="image"><img
                                                src="${pageContext.request.contextPath }/statics/images/img.jpg"
                                                alt="Profile Image"/></span>
                                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a>
                                        <span class="image"><img
                                                src="${pageContext.request.contextPath }/statics/images/img.jpg"
                                                alt="Profile Image"/></span>
                                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a>
                                        <span class="image"><img
                                                src="${pageContext.request.contextPath }/statics/images/img.jpg"
                                                alt="Profile Image"/></span>
                                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a>
                                        <span class="image"><img
                                                src="${pageContext.request.contextPath }/statics/images/img.jpg"
                                                alt="Profile Image"/></span>
                                        <span>
                          <span>John Smith</span>
                          <span class="time">3 mins ago</span>
                        </span>
                                        <span class="message">
                          Film festivals used to be do-or-die moments for movie makers. They were where...
                        </span>
                                    </a>
                                </li>
                                <li>
                                    <div class="text-center">
                                        <a>
                                            <strong>See All Alerts</strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- /top navigation -->
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="x_panel">
                <div class="x_title">
                    <div class="x_title"><h4 style="display: inline-block">手游&nbsp;&nbsp;&nbsp;<span
                            class="glyphicon glyphicon-user" aria-hidden="true"></span> 审核列表
                    </h4>&nbsp;&nbsp;&nbsp;${user.userName}-你可以通过搜索或者其它筛选项对手游信息进行审核操作。*^_^*</p>
                        <div class="clearfix"></div>
                    </div>
                    <form class="form-horizontal" action="${pageContext.request.contextPath }/info/getAppInfoList" method="post">
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <label for="name" class="col-sm-3 control-label">手机名称</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="name" placeholder="" name="softwareName" value="${softwareName}">
                            </div>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <label class="col-sm-3 control-label">所属平台</label>
                            <div class="col-sm-9">
                                <select class="form-control" name="flatformId">
                                    <option value="0">请选择</option>
                                    <c:if test="${list2==null}">
                                        <jsp:forward page="/dictionary/getflatformName"></jsp:forward>
                                    </c:if>
                                        <c:forEach items="${list2}" var="list2">
                                            <c:if test="${list2.valueId==flatformId}">
                                                <option value="${list2.valueId}" selected>${list2.valueName}</option>
                                            </c:if>
                                            <c:if test="${list2.valueId!=flatformId}">
                                                <option value="${list2.valueId}">${list2.valueName}</option>
                                            </c:if>
                                        </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <label class="col-sm-3 control-label">一级分类</label>
                            <div class="col-sm-9">
                                <select class="form-control" id="yiji" name="categoryLevel1">
                                      <option value="0">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <label class="col-sm-3 control-label">二级分类</label>
                            <div class="col-sm-9">
                                <select class="form-control" id="erji" name="categoryLevel2">
                                </select>
                            </div>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <label class="col-sm-3 control-label">三级分类</label>
                            <div class="col-sm-9">
                                <select class="form-control" id="sanji" name="categoryLevel3">


                                </select>
                            </div>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12 form-group">
                            <div class="col-sm-offset-1 col-sm-10">
                                <button type="submit" class="btn btn-info">查询</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="row" style="height: 50px"></div>
                <div class="row">
                    <table class="table table-bordered">
                        <tr>
                            <td>手游名称</td>
                            <td>APK名称</td>
                            <td>所属平台</td>
                            <td>所属分类(一级分类,二级分类,三级分类)</td>
                            <td>状态</td>
                            <td>软件大小(单位：M)</td>
                            <td>下载次数</td>
                            <td>最新版本号</td>
                            <td>操作</td>
                        </tr>
                        <c:if test="${infoPageList==null}">
                            <jsp:forward page="/info/getAppInfoList"></jsp:forward>
                        </c:if>
                          <c:forEach items="${infoPageList}" var="list1">
                              <tr>
                                  <td>${list1.softwareName}</td>
                                  <td>${list1.APKName}</td>
                                  <td>
                                      <c:if test="${list1.flatformId==1}">
                                          手机
                                      </c:if>
                                      <c:if test="${list1.flatformId==2}">
                                          平板
                                      </c:if>
                                      <c:if test="${list1.flatformId==3}">
                                          通用
                                      </c:if>
                                  </td>
                                  <td>${list1.rank1}>${list1.rank2}>${list1.rank3}</td>
                                  <td>
                                      <c:if test="${list1.status==1}">
                                          待审核
                                      </c:if>
                                      <c:if test="${list1.status==2}">
                                          审核通过
                                      </c:if>
                                      <c:if test="${list1.status==3}">
                                          审核不通过
                                      </c:if><c:if test="${list1.status==4}">
                                      已上架
                                  </c:if><c:if test="${list1.status==5}">
                                      已下架
                                  </c:if>
                                  </td>
                                  <td>${list1.softwareSize}</td>
                                  <td>${list1.downloads}</td>
                                  <td>${list1.versionNo}</td>
                                  <td>
                                  <c:if test="${list1.versionNo==null or list1.versionNo==''}">
                                   <button type="button"  class="btn btn-warning shenhei" id="${list1.id}">审核</button>
                                  </c:if>
                                  <c:if test="${list1.versionNo!=null and list1.versionNo!=''}">
                                      <button type="button" class="btn btn-warning shenhe" id="${list1.id}">审核</button>
                                      </c:if>
                              </td>
                              </tr>
                          </c:forEach>
                    </table>
                    <nav aria-label="...">
                        <ul class="pager">
                            <c:if test="${pageIndex>1}">
                                <li><a href="${pageContext.request.contextPath}/info/getAppInfoList?pageIndex=1&softwareName=${softwareName}&flatformId=${flatformId}&categoryLevel1=${categoryLevel1}&categoryLevel2=${categoryLevel2}&categoryLevel3=${categoryLevel3}">首页</a></li>
                                <li> <a href="${pageContext.request.contextPath}/info/getAppInfoList?pageIndex=${pageIndex-1}&softwareName=${softwareName}&flatformId=${flatformId}&categoryLevel1=${categoryLevel1}&categoryLevel2=${categoryLevel2}&categoryLevel3=${categoryLevel3}">上一页</a></li>
                            </c:if>
                            <c:if test="${pageIndex<totalPage}">
                                <li><a href="${pageContext.request.contextPath}/info/getAppInfoList?pageIndex=${pageIndex+1}&softwareName=${softwareName}&flatformId=${flatformId}&categoryLevel1=${categoryLevel1}&categoryLevel2=${categoryLevel2}&categoryLevel3=${categoryLevel3}">下一页</a></li>
                                <li><a href="${pageContext.request.contextPath}/info/getAppInfoList?pageIndex=${totalPage}&softwareName=${softwareName}&flatformId=${flatformId}&categoryLevel1=${categoryLevel1}&categoryLevel2=${categoryLevel2}&categoryLevel3=${categoryLevel3}">最后一页</a></li>
                            </c:if>
                        </ul>
                    </nav>
                </div>
                </form>
            </div>
        </div>
    </div>
    <!-- jQuery -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/nprogress/nprogress.js"></script>
    <!-- Chart.js -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Chart.js/dist/Chart.min.js"></script>
    <!-- gauge.js -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/gauge.js/dist/gauge.min.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
    <!-- iCheck -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/iCheck/icheck.min.js"></script>
    <!-- Skycons -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/skycons/skycons.js"></script>
    <!-- Flot -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Flot/jquery.flot.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Flot/jquery.flot.pie.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Flot/jquery.flot.time.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Flot/jquery.flot.stack.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/Flot/jquery.flot.resize.js"></script>
    <!-- Flot plugins -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/flot.orderbars/js/jquery.flot.orderBars.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/flot-spline/js/jquery.flot.spline.min.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/flot.curvedlines/curvedLines.js"></script>
    <!-- DateJS -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/DateJS/build/date.js"></script>
    <!-- JQVMap -->
    <script src="${pageContext.request.contextPath }/statics/css/vendors/jqvmap/dist/jquery.vmap.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
    <script src="${pageContext.request.contextPath }/statics/css/vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
    <!-- bootstrap-daterangepicker -->
    <!-- Custom Theme Scripts -->
    <script src="${pageContext.request.contextPath }/statics/css/build/js/custom.min.js"></script>

    <!-- Flot -->
    <script>
        $(document).ready(function () {
            var data1 = [
                [gd(2012, 1, 1), 17],
                [gd(2012, 1, 2), 74],
                [gd(2012, 1, 3), 6],
                [gd(2012, 1, 4), 39],
                [gd(2012, 1, 5), 20],
                [gd(2012, 1, 6), 85],
                [gd(2012, 1, 7), 7]
            ];

            var data2 = [
                [gd(2012, 1, 1), 82],
                [gd(2012, 1, 2), 23],
                [gd(2012, 1, 3), 66],
                [gd(2012, 1, 4), 9],
                [gd(2012, 1, 5), 119],
                [gd(2012, 1, 6), 6],
                [gd(2012, 1, 7), 9]
            ];
            $("#canvas_dahs").length && $.plot($("#canvas_dahs"), [
                data1, data2
            ], {
                series: {
                    lines: {
                        show: false,
                        fill: true
                    },
                    splines: {
                        show: true,
                        tension: 0.4,
                        lineWidth: 1,
                        fill: 0.4
                    },
                    points: {
                        radius: 0,
                        show: true
                    },
                    shadowSize: 2
                },
                grid: {
                    verticalLines: true,
                    hoverable: true,
                    clickable: true,
                    tickColor: "#d5d5d5",
                    borderWidth: 1,
                    color: '#fff'
                },
                colors: ["rgba(38, 185, 154, 0.38)", "rgba(3, 88, 106, 0.38)"],
                xaxis: {
                    tickColor: "rgba(51, 51, 51, 0.06)",
                    mode: "time",
                    tickSize: [1, "day"],
                    //tickLength: 10,
                    axisLabel: "Date",
                    axisLabelUseCanvas: true,
                    axisLabelFontSizePixels: 12,
                    axisLabelFontFamily: 'Verdana, Arial',
                    axisLabelPadding: 10
                },
                yaxis: {
                    ticks: 8,
                    tickColor: "rgba(51, 51, 51, 0.06)",
                },
                tooltip: false
            });

            function gd(year, month, day) {
                return new Date(year, month - 1, day).getTime();
            }
        });
    </script>
    <!-- /Flot -->
    <!-- JQVMap -->
    <script>
        $(document).ready(function () {
            $('#world-map-gdp').vectorMap({
                map: 'world_en',
                backgroundColor: null,
                color: '#ffffff',
                hoverOpacity: 0.7,
                selectedColor: '#666666',
                enableZoom: true,
                showTooltip: true,
                values: sample_data,
                scaleColors: ['#E6F2F0', '#149B7E'],
                normalizeFunction: 'polynomial'
            });
        });
    </script>
    <!-- /JQVMap -->
    <!-- Skycons -->
    <script>
        $(document).ready(function () {
            var icons = new Skycons({
                    "color": "#73879C"
                }),
                list = [
                    "clear-day", "clear-night", "partly-cloudy-day",
                    "partly-cloudy-night", "cloudy", "rain", "sleet", "snow", "wind",
                    "fog"
                ],
                i;

            for (i = list.length; i--;)
                icons.set(list[i], list[i]);

            icons.play();
        });
    </script>
    <!-- /Skycons -->
    <!-- Doughnut Chart -->
    <script>
        $(document).ready(function () {
            var options = {
                legend: false,
                responsive: false
            };

            new Chart(document.getElementById("canvas1"), {
                type: 'doughnut',
                tooltipFillColor: "rgba(51, 51, 51, 0.55)",
                data: {
                    labels: [
                        "Symbian",
                        "Blackberry",
                        "Other",
                        "Android",
                        "IOS"
                    ],
                    datasets: [{
                        data: [15, 20, 30, 10, 30],
                        backgroundColor: [
                            "#BDC3C7",
                            "#9B59B6",
                            "#E74C3C",
                            "#26B99A",
                            "#3498DB"
                        ],
                        hoverBackgroundColor: [
                            "#CFD4D8",
                            "#B370CF",
                            "#E95E4F",
                            "#36CAAB",
                            "#49A9EA"
                        ]
                    }]
                },
                options: options
            });
        });
    </script>
    <!-- /Doughnut Chart -->
    <!-- bootstrap-daterangepicker -->
    <script>
        $(document).ready(function () {

            var cb = function (start, end, label) {
                console.log(start.toISOString(), end.toISOString(), label);
                $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
            };

            var optionSet1 = {
                startDate: moment().subtract(29, 'days'),
                endDate: moment(),
                minDate: '01/01/2012',
                maxDate: '12/31/2015',
                dateLimit: {
                    days: 60
                },
                showDropdowns: true,
                showWeekNumbers: true,
                timePicker: false,
                timePickerIncrement: 1,
                timePicker12Hour: true,
                ranges: {
                    'Today': [moment(), moment()],
                    'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
                    'Last 7 Days': [moment().subtract(6, 'days'), moment()],
                    'Last 30 Days': [moment().subtract(29, 'days'), moment()],
                    'This Month': [moment().startOf('month'), moment().endOf('month')],
                    'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
                },
                opens: 'left',
                buttonClasses: ['btn btn-default'],
                applyClass: 'btn-small btn-primary',
                cancelClass: 'btn-small',
                format: 'MM/DD/YYYY',
                separator: ' to ',
                locale: {
                    applyLabel: 'Submit',
                    cancelLabel: 'Clear',
                    fromLabel: 'From',
                    toLabel: 'To',
                    customRangeLabel: 'Custom',
                    daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
                    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
                    firstDay: 1
                }
            };
            $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY'));
            $('#reportrange').daterangepicker(optionSet1, cb);
            $('#reportrange').on('show.daterangepicker', function () {
                console.log("show event fired");
            });
            $('#reportrange').on('hide.daterangepicker', function () {
                console.log("hide event fired");
            });
            $('#reportrange').on('apply.daterangepicker', function (ev, picker) {
                console.log("apply event fired, start/end dates are " + picker.startDate.format('MMMM D, YYYY') + " to " + picker.endDate.format('MMMM D, YYYY'));
            });
            $('#reportrange').on('cancel.daterangepicker', function (ev, picker) {
                console.log("cancel event fired");
            });
            $('#options1').click(function () {
                $('#reportrange').data('daterangepicker').setOptions(optionSet1, cb);
            });
            $('#options2').click(function () {
                $('#reportrange').data('daterangepicker').setOptions(optionSet2, cb);
            });
            $('#destroy').click(function () {
                $('#reportrange').data('daterangepicker').remove();
            });
        });
    </script>
    <!-- /bootstrap-daterangepicker -->
    <!-- gauge.js -->
    <script>
        var opts = {
            lines: 12,
            angle: 0,
            lineWidth: 0.4,
            pointer: {
                length: 0.75,
                strokeWidth: 0.042,
                color: '#1D212A'
            },
            limitMax: 'false',
            colorStart: '#1ABC9C',
            colorStop: '#1ABC9C',
            strokeColor: '#F0F3F3',
            generateGradient: true
        };
        var target = document.getElementById('foo'),
            gauge = new Gauge(target).setOptions(opts);
        gauge.maxValue = 6000;
        gauge.animationSpeed = 32;
        gauge.set(3200);
        gauge.setTextField(document.getElementById("gauge-text"));
    </script>
    <script src="${pageContext.request.contextPath}/jquery-1.12.4.js"></script>
<script>
var path = '${pageContext.request.contextPath}';
$(function () {
    $(".shenhe").click(function(){
        location.href="${pageContext.request.contextPath}/info/huiXian?id="+this.id;
    })
    $(".shenhei").click(function(){
        alert("该手游应用没有上传最新版本，不能进行审核操作！");
    })

    var yi = ${categoryLevel1};
    var er = ${categoryLevel2};
    var san = ${categoryLevel3};
    $.getJSON(path + "/category/getFenji", "parentId=0", function (data) {
        for (var i = 0; i < data.length; i++) {
            if (data[i].id==yi){
                $("#yiji").append("<option value=" + data[i].id + " selected>" + data[i].categoryName + "</option>");
            }else{
                $("#yiji").append("<option value=" + data[i].id + " >" + data[i].categoryName + "</option>");
            }
        }
    })
    if(er!=null&&er!=""){
        $.getJSON(path + "/category/getFenji", "parentId=" + er, function (data) {
            var obj = $("#sanji").empty();
            $(obj).append("<option value=\"0\">请选择</option>");
            for (var i = 0; i < data.length; i++) {
                if (data[i].id==san){
                    $(obj).append("<option value=\"" + data[i].id + "\" selected >" + data[i].categoryName + "</option>");
                }else {
                    $(obj).append("<option value=\"" + data[i].id + "\" >" + data[i].categoryName + "</option>");
                }

            }
        })
    }
    if(yi!=null&&yi!=""){
        $.getJSON(path + "/category/getFenji", "parentId=" +yi, function (data) {
            var obj = $("#erji").empty();
            $(obj).append("<option value=\"0\">请选择</option>");
            for (var i = 0; i < data.length; i++) {
                if (data[i].id==er){
                    $(obj).append("<option value=\"" + data[i].id + "\" selected>" + data[i].categoryName + "</option>");
                }else{
                    $(obj).append("<option value=\"" + data[i].id + "\" >" + data[i].categoryName + "</option>");
                }
            }
        })
    }
    $("#yiji").change(function () {
        $.getJSON(path + "/category/getFenji", "parentId=" + $(this).val(), function (data) {
            var obj = $("#erji").empty();
            $("#sanji").empty();
            $(obj).append("<option value=\"0\">请选择</option>")
            for (var i = 0; i < data.length; i++) {
                $(obj).append("<option value=\"" + data[i].id + "\">" + data[i].categoryName + "</option>");
            }
        })
    })
    $("#erji").change(function () {
        $.getJSON(path + "/category/getFenji", "parentId=" + $(this).val(), function (data) {
            var obj = $("#sanji").empty();
            $(obj).append("<option value=\"0\">请选择</option>")
            for (var i = 0; i < data.length; i++) {
                $(obj).append("<option value=\"" + data[i].id + "\">" + data[i].categoryName + "</option>");
            }
        })
    })
})
</script>



</div>
</body>
</html>
